/*
 * @Author: xie_sm
 * @Date: 2022-02-28 16:07:02
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-09-06 14:48:10
 * @FilePath: \mobile-template\src\common\constant.js
 * @Description: 系统使用的常量
 *
 */

// 移动端支持审批的表单白名单
export const FORM_KEY_NAME = {
  reimburseTest: '报销表单',
  reimburseDetail: '报销明细表单',
  reimbursement: '报销单'
}

// 属性说明：
// isFixed     是否出厂默认显示的应用
// 全部应用
export const ALL_APP_LIST = [
  // {
  //   id: 0,
  //   title: 'mobileI18nTest.news_notice',
  //   src: require('@assets/img/homepage/icon_xwtz.png'),
  //   path: '/newsList',
  //   isFixed: false, //是否固定
  // },
  {
    id: 1,
    title: 'mobileI18nTest.safety_inspection',
    src: require('@assets/img/homepage/icon_lcbd.png'),
    path: '',
    isFixed: false, //是否固定
  },
  // {
  //   id: 2,
  //   title: 'mobileI18nTest.address_book',
  //   src: require('@assets/img/homepage/icon_txl.png'),
  //   path: '/address',
  //   isFixed: true, //是否固定
  // },
  {
    id: 3,
    title: 'mobileI18nTest.Conference_Room_Management',
    src: require('@assets/img/homepage/icon_hygl.png'),
    path: '',
    isFixed: false, //是否固定
  },
  // 业务框架未提供视频监控服务，真机调试404，暂时屏蔽
  // {
  //   id: 4,
  //   title: "萤石视频监控",
  //   src: require("@assets/img/homepage/icon_spjk.png"),
  //   path: "/SmartSite",
  //   isFixed: false, //是否固定
  //   isDefault: "1", //是否显示 true 显示 false不显示
  // },
  // {
  //   id: 5,
  //   title: "原生视频监控",
  //   src: require("@assets/img/homepage/icon_spjk.png"),
  //   path: "/news",
  //   isFixed: false, //是否固定
  //   isDefault: "1", //是否显示 true 显示 false不显示
  // }, 
  {
    id: 8,
    title: '普通表单',
    src: require('@assets/img/homepage/commonOne.png'),
    path: '/commonOne',
    isFixed: true, //是否固定
  },
  {
    id: 9,
    title: '主子表单',
    src: require('@assets/img/homepage/commonDetail.png'),
    path: '/commonDetail',
    isFixed: true, //是否固定
  },
  {
    id: 10,
    title: '流程表单',
    src: require('@assets/img/homepage/reimburseTest.png'),
    path: '/reimburseTest',
    isFixed: true, //是否固定
  },
  {
    id: 11,
    title: '流程主子表',
    src: require('@assets/img/homepage/reimburseDetail.png'),
    path: '/reimburseDetail',
    isFixed: true, //是否固定
  },
  {
    id: 17,
    title: '组件库',
    src: require('@assets/img/homepage/icon_lcbd.png'),
    path: 'http://172.20.79.29:9529/#/zh-CN/',
    isFixed: true
  },
  // {
  //   id: 14,
  //   title: '地图',
  //   src: require('@assets/img/homepage/icon_lcbd.png'),
  //   path: '/map',
  //   isFixed: true, //是否固定
  // },
  {
    id: 14,
    title: '地图定位',
    src: require('@assets/img/map_position.png'),
    path: '/map',
    isFixed: true, //是否固定
  },
  {
    id: 7,
    title: '小程序',
    src: require('@assets/img/homepage/mini.png'),
    path: '',
    isFixed: true, //是否固定
  },
  // {
  //   id: 13,
  //   title: '网络状态',
  //   src: require('@assets/img/homepage/network.png'),
  //   path: '/network',
  //   isFixed: true, //是否固定
  // },

  {
    id: 15,
    title: '更多应用',
    src: require('@assets/img/homepage/more.png'),
    path: '/app',
    isFixed: true, //是否固定
  },
  // {
  //   id: 16,
  //   title: '权限demo',
  //   src: require('@assets/img/homepage/icon_lcbd.png'),
  //   path: '/permission',
  //   isFixed: true
  // },

  // {
  //   id: 18,
  //   title: '原生插件',
  //   src: require('@assets/img/homepage/icon_lcbd.png'),
  //   path: '/plugin',
  //   isFixed: true
  // },
]
export const ALL_PLUGIN_LIST = [
  {
    id: 0,
    title: '设备信息',
    src: require('@assets/img/homepage/device.png'),
    path: '/device',
    isFixed: true, //是否固定
  },
  {
    id: 1,
    title: '网络状态',
    src: require('@assets/img/homepage/network.png'),
    path: '/network',
    isFixed: true, //是否固定
  },
  {
    id: 2,
    title: '二维码扫描',
    src: require('@assets/img/homepage/scanner.png'),
    path: '/scanner',
    isFixed: true, //是否固定
  },
  {
    id: 3,
    title: '启动页',
    src: require('@assets/img/homepage/splash.png'),
    path: '/splash',
    isFixed: true, //是否固定
  },
  {
    id: 4,
    title: '视频监控',
    src: require('@assets/img/homepage/video.png'),
    path: '',
    isFixed: true, //是否固定
  },
  {
    id: 5,
    title: '横竖屏',
    src: require('@assets/img/homepage/screen.png'),
    path: '/screen',
    isFixed: true, //是否固定
  },
  {
    id: 6,
    title: '相机',
    src: require('@assets/img/homepage/image.png'),
    path: '/image',
    isFixed: true, //是否固定
  },
  {
    id: 7,
    title: '小程序',
    src: require('@assets/img/homepage/mini.png'),
    path: '',
    isFixed: true, //是否固定
  },
  {
    id: 8,
    title: '语音识别',
    src: require('@assets/img/homepage/speech.png'),
    path: '/speech',
    isFixed: true, //是否固定
  },
  {
    id: 9,
    title: '系统浏览器',
    src: require('@assets/img/homepage/browser.png'),
    path: '',
    isFixed: true, //是否固定
  },
]
// 国际化语言 key属性来定义菜单选项
export const LANG_FROM_KEY = [
  { text: '简体中文', locale: 'zh-CN', key: 'zh' },
  { text: 'English', locale: 'en', key: 'en' },
]

export const NEED_TO_EXIT_PAGE = ['Login', 'Index']

export default {
  FORM_KEY_NAME,
}
